package graphic;
/**
 * @author ZhangyiA
 * @describe: include vertex value and label
 * @date 2021/06/17
 */

public class Vertex {

    private int val;
    private int label;
    public int pre_com_label;
    public int kshell;
    public int degree;
    public float verInfluence;

    public Vertex(){}

    public Vertex(int val , int label){
        this.val = val;
        this.label = label;
        this.kshell = 0;
        this.degree = 0;
        this.verInfluence = 0.0f;
    }

    public Vertex(int val , int label , int com_label){
        this(val , label);
        this.pre_com_label = com_label;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public int getLabel() {
        return label;
    }

    public void setLabel(int label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return "Vertex{" +
                "val=" + val +
                ", label=" + label +
                '}';
    }
}
